package testDemo1;

public class Cat extends Animals {
    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {//方法的重写
        System.out.println(this.name + "吃鱼");
    }
}
